import request from '@/utils/request'

export function listsArea(queryData) {
  return request({
    url: '/tax.tariff/lists',
    method: 'post',
    data: queryData
  })
}

export function handleStatus(queryData) {
  return request({
    url: '/tax.tariff/handleStatus',
    method: 'post',
    data: queryData
  })
}

export function handleEdit(queryData) {
  return request({
    url: '/tax.tariff/handleEdit',
    method: 'post',
    data: queryData
  })
}

export function handleAdd(queryData) {
  return request({
    url: '/tax.tariff/handleAdd',
    method: 'post',
    data: queryData
  })
}
export function handleSingle(queryData) {
  return request({
    url: '/tax.tariff/handleSingle',
    method: 'post',
    data: queryData
  })
}

export function updateShortName(queryData) {
  return request({
    url: '/tax.Tariff/handleShort',
    method: 'post',
    data: queryData
  })
}

/**
 * 批量修改父级
 * @param {{
 *  child_id: number[]
 *  parent_id: number
 *  password: string
 * }} queryData
 * @returns
 */
export function updateParent(queryData) {
  return request({
    url: '/tax.Tariff/handleParent',
    method: 'post',
    data: queryData
  })
}
